package com.yuanfeng.order.service;

import com.yuanfeng.commoms.util.ResponseResult;
import io.seata.core.exception.TransactionException;

import javax.servlet.http.HttpServletRequest;
/**
 * @ClassName OrderCreateService
 * @Description 创建订单 计算价格
 * @Author cyp
 * @Date 2023-05-26 13:28:35
 * @Version 1.0
 **/
public interface OrderCreateService {

    /**
     * 计算价格
     *
     * @param message
     * @return
     */
    ResponseResult calculatePrice(String message);

    /**
     * App下单
     * @param para
     * @param request
     * @return
     */
    ResponseResult createOrders(String para, HttpServletRequest request) throws TransactionException;

}
